package org.onionframework.persistence.support;

import org.onionframework.persistence.model.logic.Actor;

/**
 * 获取当前用户的服务接口，典型的实现是authentication里面的SecurityContext类
 * 
 * @author allan
 *
 */
public interface CurrentActorHolder {

	/**
	 * @return 当前用户
	 */
	public Actor getUser();
	
	/**
	 * @return 系统默认用户
	 */
	public Actor getSystemActor();
}
